package com.chrelyonly.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chrelyonly
 */
@RestController
@CrossOrigin
public class inisCon {

//
//
//    @RequestMapping("/moni")
//    public AjaxJson moni(){
//        AjaxJson a = new AjaxJson();
//        a.setCode(200);
//        a.setMsg("ok");
//        JSONObject object = new JSONObject();
//        object.putOpt("file","https://inisapi.chrelyonly.cn/temp/1.db");
//        a.put("data",object);
//        return a;
//    }
//    @RequestMapping("/moni2")
//    public AjaxJson moni2(){
//        AjaxJson a = new AjaxJson();
//        a.setCode(200);
//        a.setMsg("数据请求成功！");
//        JSONObject object = new JSONObject();
//        String[] strArray={"inis_article",
//                "inis_article_sort",
//                "inis_auth_rule",
//                "inis_banner",
//                "inis_comments",
//                "inis_links",
//                "inis_links_sort",
//                "inis_log",
//                "inis_music",
//                "inis_options",
//                "inis_page",
//                "inis_placard",
//                "inis_tag",
//                "inis_users",
//                "inis_verify_code",
//                "inis_visit"
//        };
//        object.putOpt("mysql",strArray);
//        JSONObject object2 = new JSONObject();
//        object2.putOpt("0","api_log");
//        object2.putOpt("1","handle_log");
//        object2.putOpt("2","options");
//        object2.putOpt("4","test");
//        object2.putOpt("5","visit");
//        object.putOpt("sqlite",object2);
//        a.put("data",object);
//        return a;
//    }


    public void post(String name) {
//        GET https://inis.cc/api/db/table?name=inis_article HTTP/1.1
//        Host: inis.cc
//        Connection: keep-alive
//        sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"
//        Accept: application/json, text/plain, */*
//sec-ch-ua-mobile: ?0
//User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
//sec-ch-ua-platform: "Windows"
//Origin: https://test.inis.cn
//Sec-Fetch-Site: cross-site
//Sec-Fetch-Mode: cors
//Sec-Fetch-Dest: empty
//Referer: https://test.inis.cn
//Accept-Encoding: gzip, deflate, br
//Accept-Language: zh-CN,zh;q=0.9
//
//    }
    }
}
